<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Classify extends Model
{
    protected $table = 'sf_classify';
    protected $primaryKey = 'id';

    public function cases()
    {
        return $this->belongsTo('App\Cases','id','classify_id');
    }

    public static function getClassify(){
        return self::get();
    }

    public static function getClassifyInfo($id){
        return self::select('name')->find($id);
    }
}
